package edu.bit.water.dao;

import edu.bit.water.entity.TechProcess;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.dao.DataIntegrityViolationException;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface TechProcessDao {
    int insertTechProcess(TechProcess TechProcess) throws DataIntegrityViolationException;
    Integer getMaxId();
    int deleteTechProcess(@Param("id") int id);
    int deleteChartByBusiness(@Param("id") int id);
    int updateTechProcess(TechProcess TechProcess);
//    List<TechProcess> selectTechProcess(@Param("companyId") String companyId, @Param("moduleName") String moduleName);
    List<TechProcess> selectAllTechProcess();
    List<TechProcess> selectTechProcess(@Param("companyId") String companyId);

    int getAdminId();
    int getLidByCid(int cid);
}